package com.dj.uphome.web.mapper.system;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.dj.common.web.vo.PageAndSortVo;
import com.dj.uphome.web.vo.system.SysRoleVo;

@Mapper
public interface SysRoleMapper {
	List<SysRoleVo> findAll(PageAndSortVo<SysRoleVo> pasv);

	SysRoleVo findById(int id);

	void save(SysRoleVo vo);

	void update(SysRoleVo vo);

	void deleteById(int id);

	List<SysRoleVo> findListByRoleNameAndUserId(@Param("userId") int userId, @Param("name") String name);

}
